home *** CD-ROM | disk | FTP | other *** search
- #ifdef WINDOWS
- #define HPS HDC
- #endif
-
- /*
- * this structure contains most of the information needed
- * to use the tty window.
- */
-
- struct TTYWND {
- HWND hWnd;
- #ifdef WINDOWS
- POINT Pos;
- HANDLE hVidBuf;
- #else
- POINTL Pos;
- #endif
- BYTE *pVidBuf;
- short CWidth, CHeight;
- short Top, Left;
- short Width, Height;
- short MaxLines,MaxCols;
- short MaxLineLength;
- short CurLineOffset;
- short oCurrentLine;
- short oVidLastLine;
- short FontIndex;
- BOOL LFonCR;
- BOOL CRonLF;
- BOOL Wrap;
- BYTE ebitmask;
- };
- typedef struct TTYWND *PTTYWND;
-
- /* shared function declarations */
- InitTTYWindow(PTTYWND,short,short,short,short,short,short,
- BOOL,BOOL,BOOL,short,BYTE);
- int NEAR TTYDisplay(PTTYWND pTTYWnd, short len, BYTE *str);
- void NEAR TTYWndPaint(PTTYWND pTTYWnd, HPS hPS, short top, short bottom);
- void NEAR TTYClear(PTTYWND pTTYWnd);
-